package com.one.blocks.rbac.manager;

import com.one.blocks.mvc.manager.AbstractManager;
import com.one.blocks.mvc.valid.validator.AllocatedDataManager;
import com.one.blocks.rbac.domain.SysUser;
import com.one.blocks.rbac.mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @author <a href="mailto:idler41@163.con">idler41</a> created on 2023-10-25 10:50:39
 */
@Service
public class SysUserManager extends AbstractManager<SysUserMapper, SysUser> implements AllocatedDataManager<Set<Integer>> {

    @Autowired
    public SysUserManager(SysUserMapper mapper) {
        super(mapper);
    }

    public SysUser getByUsername(String username) {
        return mapper.selectByUsername(username);
    }
}